package io.gitee.sfch.chunmi.code.generator.filter;

import io.gitee.sfch.chunmi.code.generator.entity.ColumnRef;

/**
 * 租户的增删改查实体字段过滤
 */
public class TenantCurdEntityColumnRefFilter extends CurdEntityColumnRefFilter {

    @Override
    public boolean test(ColumnRef columnRef) {
        boolean res = super.test(columnRef);
        if (!res) {
            return false;
        }
        return !"tenantId".equals(columnRef.getCameCaseName());
    }
}
